#include <bits/stdc++.h>

using namespace std;
int num[2000010];
int main(){
    std::ios::sync_with_stdio(false);
    int count;
    while (cin>>count){
        for (int i = 0; i < count; ++i) {
            cin>>num[i];
        }
        sort(num,num+count);
        for (int i = 0; i < count; ++i) {
            if (i==0)
                cout<<num[i];
            else
                cout<<" "<<num[i];
        }
        if (count != 0){
            cout<<endl;
        }
    }
    return 0;
}

